export const SEND_STATUS = {
  PENDING: { value: 0, text: '待处理', type: 'warning' },
  SHIPPED: { value: 1, text: '已发货', type: 'success' },
  PARTIALLY_SHIPPED: { value: 2, text: '已作废', type: 'danger' },
  CANCELED: { value: 3, text: '已取消', type: 'info' },
}

export const getSendStatus = (statusValue) => {
  return Object.values(SEND_STATUS).find((status) => status.value === statusValue) || null
}
